package com.heatup.apt.model.websocket;

import java.io.Serializable;

/**
 * Created by blank on 2017/11/21 下午2:44
 */
public class Message implements Serializable {
    private static final long serialVersionUID = 994915764063236424L;

    private String type;
    private String text;
    private Integer id;
    private Long date;

    public Message() {
    }

    public Message(String type, String text, Integer id, Long date) {
        this.type = type;
        this.text = text;
        this.id = id;
        this.date = date;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getDate() {
        return date;
    }

    public void setDate(Long date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Message{" +
                "type=" + type +
                ", text='" + text + '\'' +
                ", id=" + id +
                ", date=" + date +
                '}';
    }
}
